package com.YxyBackMange.Service.App.Impl;
import com.YxyBackMange.Entity.App.AppDictCode;
import com.YxyBackMange.Mapper.App.AppDictCodeMapper;
import com.YxyBackMange.Service.App.AppDictCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AppDictCodeServiceImpl implements AppDictCodeService{
	
	@Autowired
    private AppDictCodeMapper appDictCodeMapper;
    
   @Override
   public AppDictCode insertService(AppDictCode appDictCode){
        appDictCodeMapper.insertSelective(appDictCode);
	   return appDictCode;
	   
   };
   @Override
   public AppDictCode updateService(AppDictCode appDictCode){
	     appDictCodeMapper.updateByPrimaryKeySelective(appDictCode);
        return appDictCode;
   };
    @Override
    public AppDictCode update(AppDictCode appDictCode) {
        appDictCodeMapper.updateByPrimaryKeySelective(appDictCode);
        return appDictCode;
    }
   @Override
   public AppDictCode delete(AppDictCode appDictCode){

	     appDictCodeMapper.delete(appDictCode);
        return appDictCode;
   };
    @Override
    public AppDictCode insert(AppDictCode appDictCode){

        appDictCodeMapper.insertSelective(appDictCode);
        return appDictCode;

        };
}
